package com.yc.ioc.test.bean5;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = "com.yc.test.bean5")
public class App5 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(App5.class);
        Object wp = ac.getBean("windowsPath");
        System.out.println(wp);
    }
}
